package com.jilefojing.beans.pojos.enhanced;

import java.util.Date;

import com.jilefojing.beans.pojos.Tag;
import com.jilefojing.beans.pojos.enhanced.base.BaseEnhanced;

/**
 * 
 * @author 作者 jgshun
 * @date 创建时间 2016年07月25日 22时00分52秒
 */
public class EnhancedTag extends BaseEnhanced {
	public EnhancedTag(Tag tag) {
		// TODO 自动生成 细微误差自己调整
		if (tag.getId() != null) {
			this.id = tag.getId();
		}
		this.name = tag.getName();
		this.createTime = tag.getCreateTime();
		if (tag.getCreateUser() != null) {
			EnhancedUser enhancedUser = new EnhancedUser();
			enhancedUser.setId(tag.getCreateUser());
			this.enhancedCreateUser = enhancedUser;
		}
	}

	public EnhancedTag() {
	}

	private long id;
	private String name;
	private Date createTime;
	private EnhancedUser enhancedCreateUser;
	private int countSource;// 当前标签下所拥有的资源

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public EnhancedUser getEnhancedCreateUser() {
		return enhancedCreateUser;
	}

	public void setEnhancedCreateUser(EnhancedUser enhancedCreateUser) {
		this.enhancedCreateUser = enhancedCreateUser;
	}

	public int getCountSource() {
		return countSource;
	}

	public void setCountSource(int countSource) {
		this.countSource = countSource;
	}

}